<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
	<!-- Dao -->
#for f in class.fields
	<bean id="${.f.name}" class="${class.attributes.daos[.index]}">
		<property name="debug" value="true"></property>
		<property name="sessionFactory" ref="sessionFactory"></property>
	</bean>
#end
	
	<!-- DaoFactory -->
	<bean id="daoFactory" class="${class.package}.DaoFactory">
#for f in class.fields
		<property name="${.f.name}" ref="${.f.name}"></property>
#end
	</bean>
</beans>
